#pragma once

#include <ESP8266WiFi.h>
#include <map>

struct servercfg {
    const char* ssid;
    const char* passwd;
    const char* server;
    uint16_t port;
};
extern servercfg g_servercfg[];
extern uint8_t g_servercfg_cnt;

struct portcfg {
    uint8_t port;
    const char* name;
    bool onoff;
};
typedef std::map<String, portcfg*> portcfgMap;
extern portcfg g_portcfg[];
extern uint8_t g_portcfg_cnt;
